﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ProcedureControlApi
{
    public class CmdHelper
    {
        /// <summary>
        /// 超时时间
        /// </summary>
        //public const int timeOutSeconds = 0;
        /// <summary>
        /// exe
        /// </summary>
        public const string filePath = @"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe";
        /// <summary>
        /// 启动windows服务程序
        /// </summary>
        public const string windowsStartServerCmd = "Start-Service  -Name {0}";
        /// <summary>
        /// 停止windows服务程序
        /// </summary>
        public const string windowsStopServerCmd = "Stop-Service  -Name {0}";
        /// <summary>
        /// 重启windows服务程序
        /// </summary>
        public const string windowsRestartServerCmd = "Restart-Service  -Name {0}";
        /// <summary>
        /// 启动iis下website程序
        /// </summary>
        public const string iisWebSiteStartServerCmd = "Start-Website  -Name {0}";
        /// <summary>
        /// 停止iis下website程序
        /// </summary>
        public const string iisWebSiteStopServerCmd = "Stop-Website  -Name {0}";
    }
}
